package com.wj;

import com.spring.MyApplicationContext;
import com.wj.service.PersonService;

import java.io.IOException;

/**
 * @author: Jie Wang
 * @date: 2021/4/25 14:34
 */
public class Test {

    public static void main(String[] args) throws IOException {
        MyApplicationContext myApplicationContext = new MyApplicationContext(AppConfig.class);
        PersonService personService = (PersonService) myApplicationContext.getBean("personService");
        personService.test();

    }

}
